/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.stt.department.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.stt.department.entity.SysDepartment;
import com.jeeplus.modules.stt.department.mapper.SysDepartmentMapper;

/**
 * 部门信息Service
 * @author stt
 * @version 2022-10-07
 */
@Service
@Transactional(readOnly = true)
public class SysDepartmentService extends CrudService<SysDepartmentMapper, SysDepartment> {

	public SysDepartment get(String id) {
		return super.get(id);
	}
	
	public List<SysDepartment> findList(SysDepartment sysDepartment) {
		return super.findList(sysDepartment);
	}
	
	public Page<SysDepartment> findPage(Page<SysDepartment> page, SysDepartment sysDepartment) {
		return super.findPage(page, sysDepartment);
	}
	
	@Transactional(readOnly = false)
	public void save(SysDepartment sysDepartment) {
		super.save(sysDepartment);
	}
	
	@Transactional(readOnly = false)
	public void delete(SysDepartment sysDepartment) {
		super.delete(sysDepartment);
	}
	
}